<?php
/**
 * @package     Joomla.Penguins
 * @subpackage  Template
 * @copyright   Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license     License GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access to this file
defined('_JEXEC') or die;
define('JPATH_TEMPLATES', JURI::base(TRUE) . '/templates/' . $this->template . '/');
$app = JFactory::getApplication();
$docs = JFactory::getDocument();
$docs->addStyleSheet(JPATH_TEMPLATES . 'css/reset.css');
$docs->addStyleSheet(JPATH_TEMPLATES . 'css/print.css', 'type/css', 'print');
$docs->addStyleSheet(JPATH_TEMPLATES . 'css/typography.css');
$docs->addStyleSheet(JPATH_TEMPLATES . 'css/forms.css');
$docs->addStyleSheet(JPATH_TEMPLATES . 'css/grid.css');
//$docs->addStyleSheet(JPATH_TEMPLATES . 'css/smoothness/jquery-ui-1.9.1.custom.css');
//$docs->addScript(JPATH_TEMPLATES . 'js/jquery-1.8.2.js');
//$docs->addScript(JPATH_TEMPLATES . 'js/jquery-ui-1.9.1.custom.js');
$itemId = JRequest::getInt('Itemid');
$hideComponent = $this->params->get('hide_component');
$checkComponent = in_array($itemId, $hideComponent) ? FALSE : TRUE;
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
  <head>
    <jdoc:include type="head" />
    <link rel="stylesheet" type="text/css" href="<?php echo JPATH_TEMPLATES . 'css/templates.css' ?>" />
    <link rel="stylesheet" type="text/css" href="<?php echo JPATH_TEMPLATES . 'css/tiepvv.css' ?>" />
    <link rel="stylesheet" type="text/css" href="<?php echo JPATH_TEMPLATES . 'css/tuannda.css' ?>" />
    <link rel="shortcut icon" type="image/x-icon" href="<?php JPATH_TEMPLATES; ?>/favicon.ico" /> 
  </head>
  <body class="body-page-<?php echo $itemId; ?>">
    <div id="wrapper">
      <div id="header-wrapper">
        <div class="header row">
          <div class="mainmenu pcol725">
            <jdoc:include type="modules" name="pos-mainmenu" style="none" />
          </div>
          <div class="support pcol225">
            <jdoc:include type="modules" name="pos-support" style="none" />
          </div>
          <div class="language pcol30 last">
            <jdoc:include type="modules" name="pos-language" style="none" />
          </div>
        </div>
      </div>
      <div id="moduletop-wrapper" class="clearfix">
        <div class="moduletop row">
          <div class="moduletop-left clearfix pcol270">
            <a href="<?php echo JURI::base(TRUE); ?>" class="logo"><img src="<?php echo JPATH_TEMPLATES . 'images/logo.png'; ?>" /></a>
            <?php if ($this->countModules('pos-menusp')) : ?>
              <div class="menusp clearfix"><jdoc:include type="modules" name="pos-menusp" style="none" /></div>
            <?php endif; ?>
          </div>
          <div class="moduletop-right pcol720 last">
          </div>
        </div>
      </div>
      <div id="main">
        <?php if ($this->countModules('pos-menusp')) : ?>
          <div class="latestproducts row">
            <div class="col12">
              <jdoc:include type="modules" name="pos-latestproducts" style="none" />
            </div>
          </div>
        <?php endif; ?>
        <?php if ($checkComponent) : ?>
          <div class="container clearfix row">
            <div class="mainleft pcol270 equalh">
              <jdoc:include type="modules" name="pos-mainleft" style="xhtml" />
            </div>
            <div class="mainright pcol720 equalh last">
              <jdoc:include type="message" />
              <jdoc:include type="component" />
            </div>
          </div>
        <?php endif; ?>
      </div>
      <div id="fnews-wrapper">
        <div class="fnews row">
          <div class="fnews1 col6">
            <jdoc:include type="modules" name="pos-fnews1" style="xhtml" />
          </div>
          <div class="fnews2 col6 last">
            <jdoc:include type="modules" name="pos-fnews2" style="xhtml" />
          </div>
        </div>
      </div>
      <div id="fmenu-wrapper">
        <div class="fmenu row">
          <div class="col12">
            <jdoc:include type="modules" name="pos-mainmenu" style="none" />
          </div>
        </div>
      </div>
      <div id="fcopyright-wrapper">
        <div class="fcopytright row">
          <div class="col12"><jdoc:include type="modules" name="pos-copyright" style="none" /></div>
        </div>
      </div>
    </div>
  </body>
</html>